home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: ODF Container
- Sent: 5/28/96 2:56 PM
- Received: 5/28/96 3:12 PM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
-
- Just one random comment.
-
- Don't forget that moving C++ code into a shared library means that all
- clients of this shared library have to use the same version of the same
- compiler. This is why we don't have the framework layer of ODF in a
- shared library. Until we can move the whole framework to SOM using a
- direct-to-SOM compiler this in not doable for us. We would have to ship
- one shared library for every C++ compiler and even one for each version
- of a given compiler. On the other hand it is totally doable for you to do
- it if you decide to use only one compiler and you don't expect any client
- other than yourself using your shared library. But, the best solution for
- object oriented code in a shared library is to use SOM not C++. If you
- look at the ODFLibrary it is only exporting C and SOM classes.
-
- > I was very happy to discover that ODF R1 has a container part editor. I
- >was about to try to create something with its basic functionality, but you
- >have saved me, and many others, the trouble.
- >
- > There is one aspect of ODFContainer, however, that bothers me. I am
- >attempting to convert a simulation into OpenDoc parts. The initial version
- >should have about a dozen parts that function quite closely to what is
- >already in ODFContainer. The problem is that each one of these parts will
- >end have a lot of code that is almost identical. As far as I can determine,
- >most of what is being done in the container framework classes is generic
- >and could be put into base classes. In fact, only the Part, Frame, and View
- >classes seem to contain features that require parts of them to be varied
- >from part to part.
- >
- > What I would like to have is a basic container framework that has most
- >of its functionality in a shareable library, such as ODFLibrary. As in all
- >good object oriented code designs, only the minimum amount of nonredunant
- >code would have to be incorporated into each individual part. Since most of
- >the new parts that will be produced in the future as likely to be based on
- >ODFContainer, I would like to think that there is some way of reducing the
- >their size by putting the redundant code in a common library. This approach
- >would have the added bonus that most new users wil have a much easier time
- >trying to understand ODF if most of the remaining complexity can be hidden.
- >I would anticipate that new users will be able to create new parts in a
- >fraction of the time that it is now requires since they need only
- >concentrate on the portions that absolutely have to be modified. What would
- >also be nice, is a set of tutorials derived from this simple container
- >model.
- >
- > I have made two different attempts to create such a container
- >framework, but both ended up crashing when I tried to use them. My question
- >is, then, whether this approach is viable at all. If someone with more ODF
- >experience can help me, please let me know.
- >
- >Doyle Rhynard
- >
-
-
- .......................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- .......................................................................
-
-